<?php

require_once( '../../libs/smarty.inc' );

require_once( '../../libs/smt_variables.php' );

require_once( '../../libs/Class_DB.php' );

require_once( '../../libs/Class_ERROR.php' );

require_once( '../../libs/login.inc.php' );



if( !in_array( "H", $_SESSION['ADMIN_LOGIN']['AUTH_CD'] ) ) exit;



$db = new Class_DB;



$res = $db->query("SELECT * FROM M_STAFF ORDER BY staff_id");



$cnt = 0;

while( $row = mysql_fetch_array( $res, MYSQL_ASSOC ) ){

	$stafflist[] = $row;

	$cnt++;

}









$menu_html = file_get_contents( '../../templates/web-admin/menu.html' );

$smarty->assign('menu_html', $menu_html);

$smarty->assign('stafflist', $stafflist);

$smarty->assign('cnt', $cnt);

$smarty->display('web-admin/staff_index.html');



?>